package refparam;

public class TeacherStudentTest {
	public static void main(String[] args) {
		//1.创建学生
		Student s1 = new Student();
		s1.name = "张三";
		s1.sex = '男';
		//2.创建老师
		Teacher t = new Teacher();
		t.subject = "数学";
		t.startClass(s1, "高数");
		
		Student s2 = new Student();
		s2.name = "李四";
		s2.sex = '女';
		t.startClass(s2, "概率");
	}
}
